export enum ERules {
  REQUIRED,
  IS_NUMBER,
}

export enum AlbumType {
  BY_CLASSIFY = 1,
  BY_AUTHOR = 2
}

export const rulesMessage = (rule: ERules, mes: string) => {
  switch (rule) {
    case ERules.REQUIRED: {
      return `${mes}不能为空`;
    }
    case ERules.IS_NUMBER: {
      return `${mes}必须为数字`;
    }
  }
};
